package cn.szq.concurrent.thread.create;

/**
 * @ClassName: ExtendsThread
 * @Description:
 * @Author: szq
 * @Date: 2021-09-26 15:00:00
 */
public class ExtendsThread  extends Thread{

    @Override
    public void run() {
        System.out.println("用Thread类实现线程");
    }

    public static void main(String[] args) {
        Thread thread = new Thread(new ExtendsThread());
        thread.start();
        System.out.println(thread.getName());
    }
}
